package org.example.volunteerend.entity;

import lombok.Data;
import java.time.LocalDateTime;

@Data
public class CommunityComment {
    private Integer commentId;
    private Integer userId;
    private Integer projectId;
    private String content;
    private Integer rating;
    private Integer parentCommentId;
    private LocalDateTime createTime;
    
    // 附加信息
    private User user;
    private CommunityComment parentComment;
    
    public Integer getCommentId() {
        return commentId;
    }
    
    public void setCommentId(Integer commentId) {
        this.commentId = commentId;
    }
    
    public Integer getUserId() {
        return userId;
    }
    
    public void setUserId(Integer userId) {
        this.userId = userId;
    }
    
    public Integer getProjectId() {
        return projectId;
    }
    
    public void setProjectId(Integer projectId) {
        this.projectId = projectId;
    }
    
    public String getContent() {
        return content;
    }
    
    public void setContent(String content) {
        this.content = content;
    }
    
    public Integer getRating() {
        return rating;
    }
    
    public void setRating(Integer rating) {
        this.rating = rating;
    }
    
    public Integer getParentCommentId() {
        return parentCommentId;
    }
    
    public void setParentCommentId(Integer parentCommentId) {
        this.parentCommentId = parentCommentId;
    }
    
    public LocalDateTime getCreateTime() {
        return createTime;
    }
    
    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    
    public User getUser() {
        return user;
    }
    
    public void setUser(User user) {
        this.user = user;
    }
    
    public CommunityComment getParentComment() {
        return parentComment;
    }
    
    public void setParentComment(CommunityComment parentComment) {
        this.parentComment = parentComment;
    }
} 